package com.cf.controller;

import com.cf.domain.ResponseResult;
import com.cf.domain.pojo.ScoreOptions;
import com.cf.domain.vo.ScoreVO;
import com.cf.service.IScoreService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @Author lzqinga@126.com
 * @Date 2024/11/11  12:52
 */
@RestController
@RequestMapping("/score")
@RequiredArgsConstructor
public class ScoreController {

    private final IScoreService scoreService;
    /**
     * 添加
     */
    @PostMapping
    public ResponseResult save(@RequestBody ScoreVO scoreVO){
        scoreService.score(scoreVO);
        return ResponseResult.sucess();
    }

}
